package cn.yanhu.kuwanapp.utils.helper

import cn.woochen.comlib.util.ActivityUtil
import cn.woochen.comlib.util.PackageUtil
import cn.woochen.comlib.util.UserPref
import cn.yanhu.kuwanapp.user.LoginActivity

/**
 *用户管理类
 *@author woochen
 *@time 2019/4/26 9:21
 */
object UserManageHelper {


    /**
     *重新登录
     *@author woochen
     *@time 2019/4/26 9:25
     */
    fun reLogin(){
        UserPref.clear()
        val currentActivity = PackageUtil.currentActivity
        if (currentActivity != null){
            ActivityUtil.finishAllActivity()
            LoginActivity.start(currentActivity)
//            currentActivity.finish()
        }
    }




}